package com.asiainfo.validator;

/**
 * Created by fankp on 16/8/10.
 */
public class ValidatorMember {

    public static boolean validateMember(String memberName, String memberAddr, String memberWork){
        boolean isOk = true;
        if (memberName.length()<=0 && memberName.length()>10){
            isOk = false;
            System.out.println("会员名字有误,请检查后重新输入");
            return isOk;
        }

        if (memberAddr.length()<=0 && memberAddr.length()>30){
            isOk = false;
            System.out.println("会员地址有误,请检查后重新输入");
            return isOk;
        }

        if (memberWork.length()<=0 && memberWork.length()>20){
            isOk = false;
            System.out.println("会员地址有误,请检查后重新输入");
            return isOk;
        }
        return isOk;
    }
}
